package com.ruoyi.pingjiao.mapper;

import com.ruoyi.pingjiao.domain.CourseassessName;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;
import java.util.Map;


public interface CourseAssessNameMapper {

    CourseassessName selectByCourseAssessId(Long id);

    List<CourseassessName> selectByCourseAssessIdList(Long coureassessId);

    List<CourseassessName> selectByCourseAssessIdAndParentId(Long id);

    int count();

    List<CourseassessName> selectName(Map map);

    List<CourseassessName> list(CourseassessName courseassessName);

    int add(CourseassessName courseassessName);

    int update(CourseassessName courseassessName);

    int delete(Long[] id);

    Object selectById(Long id);

    List<Integer> selectPercentByCourseAssessId(Map map);

    List<CourseassessName> selectCourseassessNameByParentId(@Param("coureassessId") Long id,@Param("parentId") Long parentId);

    void deleteByCourseAssessId(Long[] id);

    Long selectByCourseAssessIdAndName(@Param("coureassessId") Integer coureassessId, @Param("name") String name);

    List<CourseassessName> selectByCourseAssessIdAndNames(@Param("coureassessId") Integer coureassessId, @Param("name") String name);
}
